import request from '@/utils/request'

// 查询量检具校验记录列表
export function listNcMeasuringInstrumentCalibration(query) {
  return request({
    url: '/business/NcMeasuringInstrumentCalibration/list',
    method: 'get',
    params: query
  })
}

// 查询量检具校验记录详细
export function getNcMeasuringInstrumentCalibration(id) {
  return request({
    url: '/business/NcMeasuringInstrumentCalibration/' + id,
    method: 'get'
  })
}

// 新增量检具校验记录
export function addNcMeasuringInstrumentCalibration(data) {
  return request({
    url: '/business/NcMeasuringInstrumentCalibration',
    method: 'post',
    data: data
  })
}

// 修改量检具校验记录
export function updateNcMeasuringInstrumentCalibration(data) {
  return request({
    url: '/business/NcMeasuringInstrumentCalibration',
    method: 'put',
    data: data
  })
}

// 删除量检具校验记录
export function delNcMeasuringInstrumentCalibration(id) {
  return request({
    url: '/business/NcMeasuringInstrumentCalibration/' + id,
    method: 'delete'
  })
}
